package study.spring.transaction;

import org.springframework.jdbc.core.JdbcTemplate;

public class InsertTwo {

	private JdbcTemplate template;

	public void add() {
		String sql = "INSERT INTO tmp (id) VALUES (3)";
		template.execute(sql);
	}

	public JdbcTemplate getTemplate() {
		return template;
	}

	public void setTemplate(JdbcTemplate template) {
		this.template = template;
	}
}
